/**********************************************************************************************/
/* FBL_EncryptionKey.h                                                     					  */
/*                                                                       					  */
/* Copyright Paradigma, 1993-2006															  */
/* All Rights Reserved                                                   					  */
/**********************************************************************************************/

#include <VShared/FBL/publ/Headers/StdAfx.h>

#include <VShared/FBL/publ/Util_classes/FBL_EncryptionKey.h>

#include <VShared/FBL/publ/Util_classes/FBL_String.h>


/**********************************************************************************************/
FBL_Begin_Namespace


/**********************************************************************************************/
EncryptionKey::EncryptionKey( const uchar* inKeyString, ulong inKeyLen )
{
	mLen = inKeyLen;

	mKey = new uchar[mLen];
	memcpy( mKey, inKeyString, mLen );
}


/**********************************************************************************************/
EncryptionKey::~EncryptionKey( void )
{
	if( mKey )
		delete [] mKey;
}


/**********************************************************************************************/
String EncryptionKey::ToString( void )
{
	String s;

	for( ulong i = 0; i < mLen; ++i )
		s += (char)mKey[i];

	return s;
}


/**********************************************************************************************/
FBL_End_Namespace
